﻿using System.Threading.Tasks;

namespace IBasicsDal.BaseConstraint
{
    /// <summary>
    /// 数据库访问层基本约束接口
    /// </summary>
    public partial interface IBaseDal<T>
    {
        /// <summary>
        /// 开启事务
        /// </summary>
        public void BeginTran();

        /// <summary>
        /// 提交事务
        /// </summary>
        public void CommitTran();

        /// <summary>
        /// 回滚事务
        /// </summary>
        public void RollbackTran();
    }
}
